import lombok.ToString;

/**
 * @author zhaoren
 * @version 1.0
 * @description TODO
 * @date 2020/8/10 9:53
 **/

@ToString
public class ConcreStateA extends State {

    private static final int state = 1;

    @Override
    public void handle(Context context) {
        //设置contextA的下一状态是ContextB
        context.setState(new ConcreStateB());
    }
}
